const array : number [] = [1, 2, 3, 4, 5];
console.log (array.at (- 2));
const string : string = '12345';
console.log (string.at (- 2));
